home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
develop, the CD; issue 1
/
Apple_Develop_1989.bin
/
d e v e l o p (B&W)
/
d e v e l o p (B&W).rsrc
/
CODE_1.txt
< prev
next >
Wrap
Text File
|
1989-01-01
|
17KB
|
324 lines
# near model CODE resource
# jump table entries: 0-9 (10 of them)
00000000 0000 0122 ori.b D0, 0x22 /* '\"' */
export_0:
00000004 4278 0A4A clr.w [0x00000A4A /* FPState */]
00000008 9DCE sub.l A6, A6
0000000A 4EBA 002C jsr [PC + 0x2C /* 00000038 */]
0000000E 4EBA 0220 jsr [PC + 0x220 /* 00000230 */]
00000012 4267 clr.w -[A7]
00000014 4879 0000 FFFF push.l 0xFFFF
0000001A 486F 0004 pea.l [A7 + 0x4]
0000001E 4857 pea.l [A7]
00000020 3F3C 0001 move.w -[A7], 0x1
00000024 223A FFDA move.l D1, [PC - 0x26 /* 00000000, value 0x122, cstring "" */]
00000028 4EB5 1000 jsr [A5 + D1.w]
0000002C A9F4 syscall ExitToShell
0000002E 4EBA 02B2 jsr [PC + 0x2B2 /* 000002E2 */]
00000032 4EBA 022C jsr [PC + 0x22C /* 00000260 */]
00000036 4E75 rts
fn00000038:
00000038 598F subq.l A7, 4
0000003A 2F3C 5A45 524F move.l -[A7], 0x5A45524F /* 'ZERO' */
00000040 4267 clr.w -[A7]
00000042 A9A0 syscall GetResource
00000044 2457 movea.l A2, [A7]
00000046 598F subq.l A7, 4
00000048 2F3C 4441 5441 move.l -[A7], 0x44415441 /* 'DATA' */
0000004E 4267 clr.w -[A7]
00000050 A9A0 syscall GetResource
00000052 2057 movea.l A0, [A7]
00000054 2050 movea.l A0, [A0]
00000056 2278 0908 movea.l A1, [0x00000908 /* CurStackBase */]
0000005A 2452 movea.l A2, [A2]
0000005C 600E bra +0x10 /* 0000006C */
label0000005E:
0000005E 32D8 move.w [A1]+, [A0]+
00000060 660A bne +0xC /* 0000006C */
00000062 321A move.w D1, [A2]+
00000064 6002 bra +0x4 /* 00000068 */
label00000066:
00000066 4219 clr.b [A1]+
label00000068:
00000068 51C9 FFFC dbf D1, -0x6 /* 00000066 */
label0000006C:
0000006C BBC9 cmpa.l A5, A1
0000006E 66EE bne -0x10 /* 0000005E */
00000070 A9A3 syscall ReleaseResource
00000072 A9A3 syscall ReleaseResource
00000074 598F subq.l A7, 4
00000076 2F3C 4452 454C move.l -[A7], 0x4452454C /* 'DREL' */
0000007C 4267 clr.w -[A7]
0000007E A9A0 syscall GetResource
00000080 2057 movea.l A0, [A7]
00000082 A025 syscall GetHandleSize
00000084 2050 movea.l A0, [A0]
00000086 E240 asr D0.w, 1
00000088 240D move.l D2, A5
0000008A 6006 bra +0x8 /* 00000092 */
label0000008C:
0000008C 3218 move.w D1, [A0]+
0000008E D5B5 1000 add.l [A5 + D1.w], D2
label00000092:
00000092 51C8 FFF8 dbf D0, -0xA /* 0000008C */
00000096 A9A3 syscall ReleaseResource
00000098 4E75 rts
export_1:
0000009A 205F movea.l A0, [A7]+
0000009C 3218 move.w D1, [A0]+
label0000009E:
0000009E 3418 move.w D2, [A0]+
000000A0 B058 cmp.w D0, [A0]+
000000A2 57C9 FFFA dbeq D1, -0x8 /* 0000009E */
000000A6 4A42 tst.w D2
label000000A8:
000000A8 67FE beq -0x0 /* 000000A8 */
000000AA 4EF0 20FC jmp [A0 + D2.w - 0x4]
export_2:
000000AE 205F movea.l A0, [A7]+
000000B0 3218 move.w D1, [A0]+
label000000B2:
000000B2 3418 move.w D2, [A0]+
000000B4 B098 cmp.l D0, [A0]+
000000B6 57C9 FFFA dbeq D1, -0x8 /* 000000B2 */
000000BA 4A42 tst.w D2
label000000BC:
000000BC 67FE beq -0x0 /* 000000BC */
000000BE 4EF0 20FA jmp [A0 + D2.w - 0x6]
export_3:
000000C2 205F movea.l A0, [A7]+
000000C4 3218 move.w D1, [A0]+
000000C6 3418 move.w D2, [A0]+
000000C8 B042 cmp.w D0, D2
000000CA 6E0A bgt +0xC /* 000000D6 */
000000CC 9041 sub.w D0, D1
000000CE 6D06 blt +0x8 /* 000000D6 */
000000D0 D040 add.w D0, D0
000000D2 41F0 0002 lea.l A0, [A0 + D0.w + 0x2]
label000000D6:
000000D6 3010 move.w D0, [A0]
label000000D8:
000000D8 67FE beq -0x0 /* 000000D8 */
000000DA 4EF0 0000 jmp [A0 + D0.w]
export_4:
000000DE 202F 0004 move.l D0, [A7 + 0x4]
000000E2 2F41 0004 move.l [A7 + 0x4], D1
000000E6 222F 0008 move.l D1, [A7 + 0x8]
000000EA 2F5F 0004 move.l [A7 + 0x4], [A7]+
000000EE 48E7 3C00 movem.l -[A7], D2,D3,D4,D5
000000F2 2400 move.l D2, D0
000000F4 2601 move.l D3, D1
000000F6 4842 swap.w D2
000000F8 C4C3 mulu.w D2, D3
000000FA 2800 move.l D4, D0
000000FC 2A01 move.l D5, D1
000000FE 4845 swap.w D5
00000100 C8C5 mulu.w D4, D5
00000102 D444 add.w D2, D4
00000104 4842 swap.w D2
00000106 4242 clr.w D2
00000108 C0C1 mulu.w D0, D1
0000010A D082 add.l D0, D2
0000010C 4CDF 003C movem.l D2,D3,D4,D5, [A7]+
00000110 221F move.l D1, [A7]+
00000112 4E75 rts
export_5:
00000114 202F 0004 move.l D0, [A7 + 0x4]
00000118 2F41 0004 move.l [A7 + 0x4], D1
0000011C 222F 0008 move.l D1, [A7 + 0x8]
00000120 2F5F 0004 move.l [A7 + 0x4], [A7]+
00000124 48E7 3100 movem.l -[A7], D2,D3,D7
00000128 4EBA 009C jsr [PC + 0x9C /* 000001C6 */]
0000012C 4CDF 008C movem.l D2,D3,D7, [A7]+
00000130 221F move.l D1, [A7]+
00000132 4E75 rts
export_6:
00000134 202F 0004 move.l D0, [A7 + 0x4]
00000138 2F41 0004 move.l [A7 + 0x4], D1
0000013C 222F 0008 move.l D1, [A7 + 0x8]
00000140 2F5F 0004 move.l [A7 + 0x4], [A7]+
00000144 48E7 3100 movem.l -[A7], D2,D3,D7
00000148 4EBA 007C jsr [PC + 0x7C /* 000001C6 */]
0000014C 2001 move.l D0, D1
0000014E 4CDF 008C movem.l D2,D3,D7, [A7]+
00000152 221F move.l D1, [A7]+
00000154 4E75 rts
export_7:
00000156 202F 0004 move.l D0, [A7 + 0x4]
0000015A 2F41 0004 move.l [A7 + 0x4], D1
0000015E 222F 0008 move.l D1, [A7 + 0x8]
00000162 2F5F 0004 move.l [A7 + 0x4], [A7]+
00000166 48E7 3100 movem.l -[A7], D2,D3,D7
0000016A 4EBA 002C jsr [PC + 0x2C /* 00000198 */]
0000016E 4CDF 008C movem.l D2,D3,D7, [A7]+
00000172 221F move.l D1, [A7]+
00000174 4E75 rts
export_8:
00000176 202F 0004